#include "mainWindow.h"
#include "Json.h"
#include "singleton.h"

#include <iostream>
#include <QApplication>
#pragma comment(lib, "user32.lib")

// #include <hash


int main(int argc, char *argv[])
{
    slt(easyWebServer::Json).parseFromFile("./Config/lv.json");
    QApplication a(argc, argv);
    mainWindow w;
    try
    {
        w.show();
        a.exec();
    }
    catch(const std::exception& e)
    {
        // std::cerr << e.what() << '\n';
        QMessageBox::information(nullptr, "提示", e.what());
        // exit(-1);
    }
    return 0;
}